if TUNING.NPC_UPGRADE_ANIMSTATE_FN == nil then
    TUNING.NPC_UPGRADE_ANIMSTATE_FN = {}
end

TUNING.NPC_UPGRADE_ANIMSTATE_FN["00_PlayAnim_PushAnim"] = function(theAnimState)

    if theAnimState.PlayAnimation_old_test_npc == nil then  --- 避免重复hook
        
        ----------------------------------------------------------------------------------
        theAnimState.PlayAnimation_old_test_npc = theAnimState.PlayAnimation
        theAnimState.PlayAnimation = function(self,anim_name,...)            
            if self.inst and self.inst:HasTag("player") then
                print("NPC PlayAnimation",anim_name)
            end
            self:PlayAnimation_old_test_npc(anim_name,...)
        end
        ----------------------------------------------------------------------------------
        theAnimState.PushAnimation_old_test_npc = theAnimState.PushAnimation
        theAnimState.PushAnimation = function(self,anim_name,...)
            if self.inst and self.inst:HasTag("player") then
                print("NPC PushAnimation",anim_name)
            end
            self:PushAnimation_old_test_npc(anim_name,...)
        end

        ----------------------------------------------------------------------------------
    end

end
-- TUNING.NPC_UPGRADE_ANIMSTATE_FN["00_PlayAnim_PushAnim"] = function(theAnimState)

--     if theAnimState.PlayAnimation_old_test == nil then  --- 避免重复hook
        
--         ----------------------------------------------------------------------------------
--         theAnimState.PlayAnimation_old_test_npc = theAnimState.PlayAnimation
--         theAnimState.PlayAnimation = function(self,anim_name,...)
--             local player = self.get_inst_4_npc(self,self)
--             if player and player:HasTag("player") then
--                 print("PlayAnimation",anim_name,player)
--             end
--             self:PlayAnimation_old_test_npc(anim_name,...)
--         end
--         ----------------------------------------------------------------------------------
--         theAnimState.PushAnimation_old_test_npc = theAnimState.PushAnimation
--         theAnimState.PushAnimation = function(self,anim_name,...)
--             local player = self.get_inst_4_npc(self,self)
--             if player and player:HasTag("player") then
--                 print("PushAnimation",anim_name,player)
--             end
--             self:PushAnimation_old_test_npc(anim_name,...)
--         end

--         ----------------------------------------------------------------------------------
--     end

-- end